package edu.sctu.wangxiaoqiang.day20150524.texttwo;

/**
 * Created by user25 on 2015/5/24.
 */
public class Bookshell {
    public static void main(String[] args) {

        Science_book ss = new Science_book(555,0.7F);
        ss.price = (int)ss.getPrice(555,0.7f);
        ss.show();
        ss.show_price();

        Literature_book ll = new Literature_book(555,0.6F);
        ll.show();
        ll.price = (int)ll.getPrice(555,0.6f);
        ll.show_price();

        Teaching_book tt = new Teaching_book(555,0.5F);
        tt.price = (int)tt.getPrice(555,0.5f);
        tt.show();
        tt.show_price();

    }
}
